<include file="public:header" />
<include file="public:left" />
<div >
    <a class="btn btn-primary" href="{:U('User/addView')}">添加用户</a>
    <br>
    <br>
    <table id="sample-table-1" class="table table-striped table-bordered table-hover wrfont14">
        <thead>
        <tr>
            <th>ID</th>
            <th>账户名</th>
            <th>姓名</th>
            <th>电话</th>
            <th>类型</th>
            <th width="200px">操作</th>
        </tr>
        </thead>
        <tbody>
        <volist name="list" id="val">
            <tr>
                <td>{$val.id}</td>
                <td>{$val.username}</td>
                <td>{$val.name}</td>
                <td>{$val.mobile}</td>
                <td> <?php echo \Common\Common\ConstantUtil::poserList($val["rank"])  ?> </td>
                <td>
                    <a href="{:U('User/editorView?id='.$val['id'])}" class="btn btn-primary btn-sm">编辑</a>
                    <if condition="$val['status'] eq Common\Common\ConstantUtil::GLOBAL_TRUE" >
                         <a href="{:U('User/update?id='.$val['id'])}" class="btn btn-danger btn-sm">停用</a>
                    <else/>
                            <a href="{:U('User/update?id='.$val['id'])}" class="btn btn-success btn-sm">开启</a>
                     </if>
                    <a href="{:U('User/delete?id='.$val['id'])}" class="btn btn-danger btn-sm ">删除</a>
                </td>
            </tr>
        </volist>
        </tbody>
    </table>
</div>
<div class="tk_content_page" style="width:100%">{$page}</div>
<include file="public:footer" />